<%@ page language="java"
	import="java.util.*,com.xbw.bookSale.dao.*,com.xbw.bookSale.po.*,com.xbw.bookSale.vo.*"
	pageEncoding="GB18030"%>
<%
	request.setCharacterEncoding("GBK");
	String strId = request.getParameter("id");
	int id = 0;
	if (strId != null && !strId.trim().equals("")) {
		strId = strId.trim();
		try {
			id = Integer.parseInt(strId);
		} catch (NumberFormatException e) {
			e.printStackTrace();
			out.println("ID ERROR !");
			return;
		}
		Map<Integer, CartItem> cart = (Map<Integer, CartItem>) session
				.getAttribute("CART");
		if (cart != null && cart.size() > 0) {
			cart.remove(id);
		}
		response.sendRedirect("LookAtCart.jsp");
	}
%>